<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>if条件语句3</title>
		<script>
			var age=17;
			if(age>17&&age<=30){
				alert("你已经成年了");
			}
			else if(age>30&&age<=60){
				alert("你已经中年了");
			}
			else if(age>60){
				alert("你已经退休了");
			}
			else{
				alert("你还是个小孩");
			}
		</script>
	</head>
	<body>
	</body>
</html>
